#{extends 'organization.html' /} #{set title: 'Check Duplicate Marks' /} 
#{if topic == null}
<h1>Sorry, it seems you were trying to access a non-existing topic.</h1>
#{/if} #{else}
<h1 align="center" class="viewTitle">Duplicate Marks in Topic ${topic.name}</h1>
<div class="viewContent">
#{if !authorized}
<h1>You are not authorized to view this page. Only Organizers and
	Organization Leads can view it.</h1>
#{/if} #{else}
<h3>${duplicateMarks.size() ?: 'No'} duplicate mark(s) waiting for
	reviewing under this topic.</h3>

#{list items:duplicateMarks, as:'mark'}
#{if !mark.reviewed}
<br/>
<a href="@{Browse.viewIdea(mark.marked.id)}" class="standardLink">${mark.marked.title}</a>
was marked as duplicate with
<br/>
<a href="@{Browse.viewIdea(mark.original.id)}" class="standardLink">${mark.original.title}</a>
by User ${mark.marker.userName}<br />

<a href="@{Browse.blockMarker(mark.id)}" class="standardLink">Ignore and block marker</a>
<br/>
<a href="@{Browse.ignoreMark(mark.id)}" class="standardLink">Ignore this mark</a>
<br />
<a href="@{Browse.acceptDuplicateMark(mark.id)}" class="standardLink">Accept this mark (adds the duplicate idea to marked idea list)</a>
 <br/><br/>
 #{/if}
 #{/list}
 <br><br>
<a href="@{Browse.viewTopic(topic.id)}">Back to topic</a>
#{/else}
</div>
#{/else}